﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;


namespace Ultimate_Gladiator
{
    class Gladiator : DrawableGameComponent 
    {
        private Texture2D texture;
        private Vector2 position;
        private int moveSpeed;

        public Gladiator(): base(Game1.game)
        {
            moveSpeed = 10;
            position.X = 0;
            position.Y = 400;
            Console.WriteLine("w8asduasdu");
        }

        public void walk(Boolean goLeft)
        {
            if (goLeft == true) this.position.X -= moveSpeed;
            else this.position.X += moveSpeed;
        }

        public override void Draw(GameTime gameTime)
        {
            Game1.spriteBatch.Draw(texture, position, Color.White);
            base.Draw(gameTime);
        }

        protected override void LoadContent()
        {
            texture = Game.Content.Load<Texture2D>("images/gladiator");
        }
    }
}
